package com.sx.manage.controller.bank;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sx.manage.controller.base.MBaseController;
import com.sx.manage.service.bank.IMBaseStepInstitutionInfoService;
import com.sx.model.manage.mybatis.form.bank.MStepInstitutionInfoForm;
import com.sx.model.manage.mybatis.vo.bank.MDropDownVO;
import com.sx.model.manage.mybatis.vo.bank.MStepInstitutionInfoVO;
import com.sx.model.manage.mybatis.vo.result.ResultDropDownListVO;
import com.sx.model.manage.mybatis.vo.result.ResultListVO;
import com.sx.model.manage.mybatis.vo.result.ResultObjectVO;

/**
 * 全量超级网银行号
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/stepInfo")
public class MStepInstitutionInfoController extends MBaseController{
	
	private Logger log = LoggerFactory.getLogger(this.getClass());
	@Resource
	private IMBaseStepInstitutionInfoService mBaseStepInstitutionInfoServiceImpl;
	/**
	 * 查询下拉框
	 * @param form
	 * @return
	 */
	@RequestMapping("/query_step")
	@ResponseBody
	public ResultDropDownListVO<MDropDownVO> ajaxSerch(MStepInstitutionInfoForm form){
		log.info("查询全量超级网银行号下拉框form={}",form);
		return mBaseStepInstitutionInfoServiceImpl.queryListForSelect(form);
	}
	/**
	 * id 查询
	 * @param id
	 * @return
	 */
	@RequestMapping("/query_step_id")
	@ResponseBody
	public ResultObjectVO<MStepInstitutionInfoVO> queryId(Long id){
		log.info("根据id查询全量超级网银行号下拉框id={}",id);
		return mBaseStepInstitutionInfoServiceImpl.queryById(id);
	}
	/**
	 * 列表查询
	 * @param form
	 * @return
	 */
	@RequestMapping("/query_list")
	@ResponseBody
	public ResultListVO<MStepInstitutionInfoVO> queryList(MStepInstitutionInfoForm form){
		log.info("查询全量超级网银行号下拉框list form={}",form);
		return mBaseStepInstitutionInfoServiceImpl.queryList(form);
	}

}
